package com.wanke.controller;

import org.springframework.web.bind.annotation.*;

/**
 * @program: jpa_demo
 * @ClassName TestController
 * @author: WXK
 * @create: 2024-05-01 10:07
 **/
@RestController
@RequestMapping("/test")
public class TestController {


    @GetMapping()
    public String test(){
        return "test、这是一个java测试python爬取请求数据的连接";
    }



    @PostMapping("/login")
    public String test2(@RequestBody Login login){
        return "test、这是一个java测试python爬取请求数据的连接";
    }

}

class Login {
    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String username;
    private String password;
}
